package genModel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ TablesModel = (*customTablesModel)(nil)

type (
	// TablesModel is an interface to be customized, add more methods here,
	// and implement the added methods in customTablesModel.
	TablesModel interface {
		tablesModel
	}

	customTablesModel struct {
		*defaultTablesModel
	}
)

// NewTablesModel returns a model for the database table.
func NewTablesModel(conn sqlx.SqlConn, c cache.CacheConf) TablesModel {
	return &customTablesModel{
		defaultTablesModel: newTablesModel(conn, c),
	}
}
